package com.ruoyi.ZdPayment.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.ZdPayment.mapper.ZdPaymentMapper;
import com.ruoyi.ZdPayment.domain.ZdPayment;
import com.ruoyi.ZdPayment.service.IZdPaymentService;

/**
 * 缴费Service业务层处理
 * 
 * @author 智电未来
 * @date 2024-07-09
 */
@Service
public class ZdPaymentServiceImpl implements IZdPaymentService 
{
    @Autowired
    private ZdPaymentMapper zdPaymentMapper;

    /**
     * 查询缴费
     * 
     * @param id 缴费主键
     * @return 缴费
     */
    @Override
    public ZdPayment selectZdPaymentById(Long id)
    {
        return zdPaymentMapper.selectZdPaymentById(id);
    }

    /**
     * 查询缴费列表
     * 
     * @param zdPayment 缴费
     * @return 缴费
     */
    @Override
    public List<ZdPayment> selectZdPaymentList(ZdPayment zdPayment)
    {
        return zdPaymentMapper.selectZdPaymentList(zdPayment);
    }

    /**
     * 新增缴费
     * 
     * @param zdPayment 缴费
     * @return 结果
     */
    @Override
    public int insertZdPayment(ZdPayment zdPayment)
    {
        return zdPaymentMapper.insertZdPayment(zdPayment);
    }

    /**
     * 修改缴费
     * 
     * @param zdPayment 缴费
     * @return 结果
     */
    @Override
    public int updateZdPayment(ZdPayment zdPayment)
    {
        return zdPaymentMapper.updateZdPayment(zdPayment);
    }

    /**
     * 批量删除缴费
     * 
     * @param ids 需要删除的缴费主键
     * @return 结果
     */
    @Override
    public int deleteZdPaymentByIds(Long[] ids)
    {
        return zdPaymentMapper.deleteZdPaymentByIds(ids);
    }

    /**
     * 删除缴费信息
     * 
     * @param id 缴费主键
     * @return 结果
     */
    @Override
    public int deleteZdPaymentById(Long id)
    {
        return zdPaymentMapper.deleteZdPaymentById(id);
    }
}
